package cn;

import cn.annotation.MyAnnotation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * Caused by: org.springframework.context.annotation.ConflictingBeanDefinitionException: Annotation-specified bean name 'test' for bean class [cn.Test] conflicts with existing, non-compatible bean definition of same name and class [com.lwp.test.spring.Test]
 */
@MyAnnotation
//@Component("testCn")
public class Test {

    @Autowired
    com.lwp.test.spring.Test test;

    public Test() {
        System.out.println("cn.Test construct 9999999999999999999999999");
    }

    public void hello() {
        System.out.println("hello");
        test.hello();
    }
}
